//引入mongoose
var mongoose = require('mongoose');

//定义数据库模式
var Schema = mongoose.Schema;
//创建用户模型
var articleModel = new Schema({
    title: String,
    keywords: String,
    describe: String,
    category: String,
    tags: String,
    titlepic: String,
    visibility: Number,
    time: String,
    submit: String,
    content: String
});

module.exports = mongoose.model("articles", articleModel);